package cn.kgc.mapper;
import cn.kgc.pojo.DmOrder;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DmOrderMapper {

//根据id获取表数据
public DmOrder getDmOrderById(@Param(value = "id") Long id) throws Exception;

//多条件查询获取表中的数据，返回满足条件的一条或多条数据
public List<DmOrder> getDmOrderListByMap(Map<String,Object> param) throws Exception;

//多条件获取满足条件的总记录数据
public Integer getDmOrderCountByMap(Map<String,Object> param)throws Exception;

//插入表数据
public Integer insertDmOrder(DmOrder dmOrder)throws Exception;

//修改表数据
public Integer updateDmOrder(DmOrder dmOrder)throws Exception;

//删除表数据
public Integer deleteDmOrderById(@Param(value = "id") Long id)throws Exception;

 public Integer flushCancelOrder();
}